package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-23 14:03
 */
public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个数");
        int numA = sc.nextInt();
        System.out.println("输入一个数");
        int numB = sc.nextInt();
//        int max;
//        if (numA > numB) {
//            max = numA;
//        }else{
//            max = numB;
//        }
        int max = numA > numB ? numA : numB;
        System.out.println("max:" + max);
    }
}
